<template>
	<view>
		<model v-model="obj" :confirm="confirm"></model>
	</view>
</template>
<script>
	import {
		bootreceivingAddressinsert
	} from '@/api/home'
	import model from './component/addressmode'
	export default {
		data() {
			return {
				obj: {}
			}
		},
		components: {
			model
		},
		methods: {
			confirm() {
				return new Promise((a) => {
					bootreceivingAddressinsert(this.obj).then(res => {
						a(res)
					})
				})
			}
		}
	}
</script>
<style>
	page {
		background-color: #E4E6E9;
	}
</style>
